import request from '@/utils/request'

// 查询临时任务下发列表
export function listLimsMissionIssued(query) {
  return request({
    url: '/lims/mission/issued/list',
    method: 'get',
    params: query
  })
}

// 查询临时任务下发详细
export function getLimsMissionIssued(miId) {
  return request({
    url: '/lims/mission/issued/' + miId,
    method: 'get'
  })
}

// 新增临时任务下发
export function addLimsMissionIssued(data) {
  return request({
    url: '/lims/mission/issued',
    method: 'post',
    data: data
  })
}

// 修改临时任务下发
export function updateLimsMissionIssued(data) {
  return request({
    url: '/lims/mission/issued',
    method: 'put',
    data: data
  })
}
export function allot(data) {
  return request({
    url: '/lims/mission/issued/allot',
    method: 'post',
    data: data
  })
}

// 删除临时任务下发
export function delLimsMissionIssued(miId) {
  return request({
    url: '/lims/mission/issued/' + miId,
    method: 'delete'
  })
}

// 导出临时任务下发
export function exportLimsMissionIssued(query) {
  return request({
    url: '/lims/mission/issued/export',
    method: 'get',
    params: query
  })
}
// 标记完成
export function markOk(ids) {
  return request({
    url: '/lims/mission/issued/markOk/' + ids,
    method: 'get'
  })
}
